using System;

namespace MetaView.Core;

internal class ByteBlockFastBinaryConverter : FastBinaryConverter<ByteBlock>
{
    protected override ByteBlock Read<TByteBlock>(ref TByteBlock byteBlock, Type type)
    {
        return byteBlock.ReadByteBlock();
    }

    protected override void Write<TByteBlock>(ref TByteBlock byteBlock, in ByteBlock obj)
    {
        byteBlock.WriteByteBlock(obj);
    }
}